<template>
	<view class="hs-panel">
		<view class="hs-panel-head"><view class="title">婚宴基本信息</view></view>
		<view class="hs-panel-body">
			<view class="hs-list-item">
				<view class="hs-list-item-left">定单执行公司</view>
				<view class="hs-list-item-right">{{ dictionary.getPickerTitle('companyList', banquet.company_id) }}</view>
			</view>
			<view class="hs-list-item">
				<view class="hs-list-item-left">桌数</view>
				<view class="hs-list-item-right">{{ banquet.table_amount }}</view>
			</view>
			<view class="hs-list-item">
				<view class="hs-list-item-left">餐标</view>
				<view class="hs-list-item-right">{{ banquet.table_price }}</view>
			</view>
			<view class="hs-list-item" v-if="banquet.banquet_discount > 0">
				<view class="hs-list-item-left">优惠价</view>
				<view class="hs-list-item-right">{{ banquet.banquet_discount }}</view>
			</view>
			<!-- 	
			<view class="hs-list-item" v-if="banquet.food_totals">
				<view class="hs-list-item-left">餐饮总金额</view>
				<view class="hs-list-item-right">{{ banquet.food_totals }}</view>
			</view>
			-->
			<view class="hs-list-item" v-if="banquet.service_fee > 0">
				<view class="hs-list-item-left">服务费</view>
				<view class="hs-list-item-right">{{ banquet.service_fee }}</view>
			</view>
			<view class="hs-list-item" v-if="banquet.wine_fee > 0">
				<view class="hs-list-item-left">酒水费用</view>
				<view class="hs-list-item-right">{{ banquet.wine_fee }}</view>
			</view>
			<view class="hs-list-item" v-if="banquet.banquet_update_table > 0">
				<view class="hs-list-item-left">加菜换菜</view>
				<view class="hs-list-item-right">{{ banquet.banquet_update_table }}</view>
			</view>
			<view class="hs-list-item" v-if="banquet.banquet_ritual_id > 0">
				<view class="hs-list-item-left">仪式</view>
				<view class="hs-list-item-right">{{ dictionary.getPickerTitle('ritualList', banquet.banquet_ritual_id) }}</view>
			</view>
			<view class="hs-list-item" v-if="banquet.banquet_ritual_hall > 0">
				<view class="hs-list-item-left">仪式价格</view>
				<view class="hs-list-item-right">{{ banquet.banquet_ritual_hall }}</view>
			</view>
			<view class="hs-list-item" v-if="banquet.banquet_other > 0">
				<view class="hs-list-item-left">其他金额</view>
				<view class="hs-list-item-right">{{ banquet.banquet_other }}</view>
			</view>
			<view class="hs-list-item" v-if="banquet.banquet_totals">
				<view class="hs-list-item-left">婚宴总计</view>
				<view class="hs-list-item-right">{{ banquet.banquet_totals }}</view>
			</view>
			<view class="remark" v-if="banquet.banquet_remark">
				<view class="remark-title">备注</view>
				<view class="remark-content">{{ banquet.banquet_remark }}</view>
			</view>
		</view>
	</view>
</template>

<script>
import dictionary from '@/utils/dictionary.js';

export default {
	props: {
		banquet: Object
	},

	beforeCreate() {
		this.dictionary = dictionary;
		console.log(this.dictionary);
	}
};
</script>

<style lang="less">
@import url('../common.less');
</style>
